package com.example.loopyserver.common;


public enum ResultCode {
    /**
     * 0 - 1000 常规
     */
    SUCCESS(0, "成功"),
    FAILED(1, "失败"),
    ARGUMENT_NOT_VALID(2, "参数不正确"),
    /**
     * 1000 - 2000 task
     */
    NO_TASK(1000, "没有指定的任务"),
    TASK_NOT_EXIST(1001, "任务超时或不存在"),
    INVALID_TASK_RES(1002, "非法任务结果"),
    /**
     * 2000 - 3000 QA
     */
    QA_TIME_OUT(2000, "问答系统响应超时"),
    QA_INTERNAL_ERROR(2001, "问答系统内部计算出错");

    public final Integer value;
    public final String defaultMsg;

    ResultCode(Integer value, String defaultMsg) {
        this.value = value;
        this.defaultMsg = defaultMsg;
    }
}
